package com.nlelpct.manage.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 角色信息表
 * </p>
 *
 * @author 小马
 * @since 2023-07-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sys_role")
public class SysRole implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 角色id
     */
    @TableId(value = "role_id", type = IdType.ASSIGN_UUID)
    private String roleId;

    /**
     * 所属企业
     */
    private String companyId;

    /**
     * 角色编号
     */
    private String roleNum;

    /**
     * 角色名称
     */
    private String roleName;

    /**
     * 角色权限字符串
     */
    private String roleKey;

    /**
     * 显示顺序
     */
    private Integer roleSort;

    /**
     * 数据范围（1：全部数据权限 2：本部门数据权限 3：本部门及以下数据权限 4：归属本人的数据 5：自定数据权限）
     * 维护：com.nlelpct.manage.constant.SysRoleConstant
     */
    private Integer dataScope;

    /**
     * 菜单树选择项是否关联显示
     */
    private Integer menuCheckStrictly;

    /**
     * 部门树选择项是否关联显示
     */
    private Integer deptCheckStrictly;

    /**
     * 角色状态（0停用 1正常）
     * 维护：com.nlelpct.manage.constant.SysRoleConstant
     */
    private Integer roleStatus;

    /**
     * 删除标志（0代表删除 1代表存在）
     * 维护：com.nlelpct.manage.constant.SysRoleConstant
     */
    private Integer delFlag;

    /**
     * 创建者员工id
     */
    private String createBy;

    /**
     * 更新者员工id
     */
    private String updateBy;

    /**
     * 角色描述
     */
    private String roleDesc;

    /**
     * 创建时间 单位ms
     */
    private Long createTime;

    /**
     * 更新时间
     */
    private Long updateTime;


    public static final String ROLE_ID = "role_id";

    public static final String COMPANY_ID = "company_id";

    public static final String ROLE_NUM = "role_num";

    public static final String ROLE_NAME = "role_name";

    public static final String ROLE_KEY = "role_key";

    public static final String ROLE_SORT = "role_sort";

    public static final String DATA_SCOPE = "data_scope";

    public static final String MENU_CHECK_STRICTLY = "menu_check_strictly";

    public static final String DEPT_CHECK_STRICTLY = "dept_check_strictly";

    public static final String ROLE_STATUS = "role_status";

    public static final String DEL_FLAG = "del_flag";

    public static final String CREATE_BY = "create_by";

    public static final String UPDATE_BY = "update_by";

    public static final String ROLE_DESC = "role_desc";

    public static final String CREATE_TIME = "create_time";

    public static final String UPDATE_TIME = "update_time";



}
